package com.rc.mutievcharger.dto.ylevcharger.terminal.req;

import com.rc.evcharger.common.annotation.ByteLength;
import com.rc.evcharger.common.base.yl.BaseYlCommand;

/**
 * Create by Yang on 2021/7/30
 *  (CMD=2)充电桩参数整形设置/查询应答
 * 当前只回应二维码指令
 */
public class YlQCodeComandReq extends BaseYlCommand {

    @ByteLength(length = 2)
    private String obligate1; //预留字段1
    @ByteLength(length = 2)
    private String obligate2; //预留字段2
    @ByteLength(length = 32)
    private String terminalId; //充电桩编码
    @ByteLength(length = 1)
    private String cmdType; // 0-查询 1-设置
    @ByteLength(length = 1)
    private String cmdLength; //同设置命令地址
    @ByteLength(length = 1)
    private String result; //0 表示成功，其它失败
    @ByteLength(length = 0)
    private String cmdData; // 查询参数信息

    public String getObligate1() {
        return obligate1;
    }

    public void setObligate1(String obligate1) {
        this.obligate1 = obligate1;
    }

    public String getObligate2() {
        return obligate2;
    }

    public void setObligate2(String obligate2) {
        this.obligate2 = obligate2;
    }

    @Override
    public String getTerminalId() {
        return terminalId;
    }

    @Override
    public void setTerminalId(String terminalId) {
        this.terminalId = terminalId;
    }

    public String getCmdType() {
        return cmdType;
    }

    public void setCmdType(String cmdType) {
        this.cmdType = cmdType;
    }

    public String getCmdLength() {
        return cmdLength;
    }

    public void setCmdLength(String cmdLength) {
        this.cmdLength = cmdLength;
    }

    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }

    public String getCmdData() {
        return cmdData;
    }

    public void setCmdData(String cmdData) {
        this.cmdData = cmdData;
    }
}
